package com.young.modbus.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Author: Young
 * @CreateTime: 2024-12-24
 * @Description: modbus配置信息读取
 * @Version: 1.0
 */
@Data
@ConfigurationProperties(prefix = "plc.config")
public class PlcConfig {
    /**
     * plc地址
     */
    private String host;
    /**
     * plc端口号
     */
    private Integer port;
    /**
     * plc从机地址
     */
    private Integer slaveId;
    /**
     * 连接超时时间
     */
    private Integer timeout;
    /**
     * 重试次数
     */
    private Integer retries;

}